# backend/Dockerfile
FROM python:3.10-slim-buster

RUN apt-get update && \
    apt-get install -y curl gnupg && \
    rm -rf /var/lib/apt/lists/*

COPY requirements.txt ./back/

RUN python -m venv /venv
ENV PATH="/venv/bin:$PATH"
RUN pip install --no-cache-dir -r /back/requirements.txt

COPY . /back

WORKDIR /back

RUN chmod +x wait_and_run.sh

EXPOSE 8000
